import logging

if __name__ == '__main__':
    
    import os
    from PyCmpltrtok.common import get_dir_name_ext
    
    DIR, BASE, EXT = get_dir_name_ext(os.path.abspath(__file__))
    filepath = os.path.join(DIR, f'{BASE}.tmp.log')
    
    print(logging.getLogger().handlers)
    logging.basicConfig(level=logging.DEBUG, filename=filepath)
    print(logging.getLogger().handlers)

    logging.getLogger().info('An information ...')
    